import Vue from "vue";
import VueRouter from "vue-router";
import Content from '../views/ContentHead.vue';
import PingJia from '../views/PingJia.vue'
import ShangJia from '../views/ShangJia.vue'
import FoodMinute from '../components/FoodMinute.vue'
Vue.use(VueRouter)
let router = new VueRouter({
    mode:'history',
    routes:[{
        name:'home',
        path:'/',
        redirect:'/goods'
    },
    {
        name:'goods',
        path:'/goods',
        component:Content

    },
    {
        name:'pingjia',
        path:'/pingjia',
        component:PingJia

    },
    {
        name:'ShangJia',
        path:'/ShangJia',
        component:ShangJia
    },
    {
        name:'Minute',
        path:'/Minute',
        component:FoodMinute
    },
]
})

export default router;